package com.btkjgc.service.intf;

import com.btkjgc.models.LeftMenu;

import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;

import java.util.List;
import java.util.Map;

/**
 * Created by _ESE on 2015/2/3.
 */
public interface LeftBarManager_Intf
{

	public boolean isNeedLeftBar(HttpServletRequest request);

	public ModelAndView addLeftBar(HttpServletRequest request, ModelAndView mv);

	public List<LeftMenu> getLeftMenuByRoleId(int roleId);

	public List<LeftMenu> getRawLeftMenu();

	public void insertLeftMenu(HttpServletRequest request, int parent_index,
			String text, String url, int level, String icon, String module,
			int min_role_id);

	public void updateLeftMenu(HttpServletRequest request, Integer id,
			Integer index, Integer parent_index, Integer level);

	public void updateLeftMenu(String id, String oldUrl, String url, String text);// (id,
																					// url,
																					// text)

	public void deleteById(String id);

	public Map<Integer, Integer> getMenuFunctionMap(
			List<LeftMenu> allLeftMenuList);

	public void insertRoleFunction(String role, String menuid);
}
